/**
 * Copyright © 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.banner.entity;

import javax.validation.constraints.NotNull;

import com.jeeplus.core.persistence.DataEntity;
import com.jeeplus.common.utils.excel.annotation.ExcelField;
import lombok.Data;

/**
 * 轮播图Entity
 * @author zhych
 * @version 2021-12-08
 */
@Data
public class Banner extends DataEntity<Banner> {
	
	private static final long serialVersionUID = 1L;
	@ExcelField(title="图片", align=2, sort=1)
	private String img;		// 图片
    @NotNull(message="排序不能为空")
	@ExcelField(title="排序", align=2, sort=2)
	private Integer sort;		// 排序
	
	public Banner() {
		super();
	}
	
	public Banner(String id){
		super(id);
	}
}